<?php

class ValidarHelper {
    
    private static $epsilon;
    
    public function __construct() {
        ValidarHelper::$epsilon = 1e-5;
        
        
    }
    
    public static function validarValorFloatMaior($float1, $float2){
        $diff = abs($float1-$float2);
        if($diff < ValidarHelper::$epsilon){
            return 0;
        }
        return ($float1 < $float2) ? false : true ;
    }
    
}

?>
